package info.motteke.mixivoice4j;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;

/* package */ class Comments {

    private final LinkedHashSet<Comment> comments = new LinkedHashSet<Comment>();

    public boolean add(Comment comment) {
        return comments.add(comment);
    }

    public boolean addAll(Collection<Comment> comments) {
        return this.comments.addAll(comments);
    }

    public List<Comment> asList() {
        return new ArrayList<Comment>(comments);
    }
}
